package com.taotao.frame.satoken.mapper;


import com.gitee.fastmybatis.core.mapper.CrudMapper;

import com.github.pagehelper.Page;

import com.taotao.frame.satoken.model.entity.SysUser;
import org.apache.ibatis.annotations.Param;

/**
* 用户DAO
*
* @author youbeiwuhuan
* @date 2023-04-21 16:43:39
*/
public interface SysUserMapper extends CrudMapper<SysUser/*实体类*/, java.lang.Long/*主键类型*/> {

    /**
    * 分页查询
    *
    * @param param    查询参数
    * @param pageNum  页号
    * @param pageSize 页大小
    * @return
    */
    Page<SysUser> selectByPage(
        @Param("param") SysUser param,
        @Param("pageNum") int pageNum,
        @Param("pageSize") int pageSize);

    SysUser selectByUsername(@Param("username")String username);
}